setSwitchBarText

open fun setSwitchBarText(onTextId: Int, offTextId: Int)(source)

Set the text to display when the switch is in the on or off state.

Parameters

onTextId

The string resource for when the switch is on.

offTextId

The string resource for when the switch is off.